package com.eduadmin.exception;

import java.util.List;

public class CustomException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    //从错误页回跳的 url
    private String url;
    List<String> errors;

    //自定义构造器
    public CustomException(String url, String msg, List<String> errors) {
        super(msg);
        this.url = url;
        this.errors = errors;
    }

    public String getUrl() {
        return this.url;
    }

    public List<String> getErrors() {
        return this.errors;
    }
}
